<?php

namespace app\zhongcan\controller;

use app\zhongcan\model\IndexModel;
use cmf\controller\AdminBaseController;

class IndexController extends AdminBaseController
{
    //显示导航菜单
    public function index(){
        $list = IndexModel::with('child')
            ->where('parent_id',0)
            ->select();
        return $this->fetch('navigate',['list'=>$list,]);
    }
}